package com.btkjgc.framework.report;

import java.util.ArrayList;
import java.util.List;

public class Line
{
	public static Integer SHOW_POINT_TRUE = 1;
	public static Integer SHOW_POINT_FALSE = 0;
	String lineName;
	String color = "";// 定义线条颜色
	List<ValuePoint> points = new ArrayList<ValuePoint>();
	Double pointRadius = 2.5;
	Integer isShowPoint = 1;

	public Line()
	{
	}

	public Line(String lineName, String color, List<ValuePoint> points)
	{
		this.lineName = lineName;
		this.color = '"' + color + '"';
		this.points = points;
	}

	public String getLineName()
	{
		return lineName;
	}

	public void setLineName(String lineName)
	{
		this.lineName = lineName;
	}

	public String getColor()
	{
		return color;
	}

	public void setColor(String color)
	{
		this.color = '"' + color + '"';
	}

	public List<ValuePoint> getPoints()
	{
		return points;
	}

	public void setPoints(List<ValuePoint> points)
	{
		this.points = points;
	}

	public void addPoint(ValuePoint valuePoint)
	{
		points.add(valuePoint);
	}

	public Double getPointRadius()
	{
		return pointRadius;
	}

	public void setPointRadius(Double pointRadius)
	{
		this.pointRadius = pointRadius;
	}

	public Integer getIsShowPoint()
	{
		return isShowPoint;
	}

	public void setIsShowPoint(Integer isShowPoint)
	{
		this.isShowPoint = isShowPoint;
	}
}
